package gameFrame
{
	import manager.ModelMgr;
	
	import ui.GuiWnd;

	public class GameFrame extends GuiWnd
	{
		protected var cList:Vector.<GameC> = new Vector.<GameC>;
		public function GameFrame()
		{
		}
		
		public function addC(c:GameC):void
		{
			cList.push(c);
		}
		
		public function addM(cl:Class):void
		{
			ModelMgr.inst.getModel(cl);
		}
		
		public function show(data:Object):void
		{
			for (var i:int = 0; i < cList.length; i++) 
			{
				cList[i].Show(data);
			}
			
		}
		
		public function close():void
		{
			for (var i:int = 0; i < cList.length; i++) 
			{
				cList[i].Close();
			}
		}
	}
}